package com.zx.sys.cms.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zx.common.utils.PageUtils;
import com.zx.common.utils.Query;
import com.zx.sys.cms.dao.CmsChannelDao;
import com.zx.sys.cms.entity.CmsChannelEntity;
import com.zx.sys.cms.service.CmsChannelService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("cmsChannelService")
public class CmsChannelServiceImpl extends ServiceImpl<CmsChannelDao, CmsChannelEntity> implements CmsChannelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CmsChannelEntity> page = new Query<CmsChannelEntity>().getPage(params);
        page.setRecords(baseMapper.selectListPage(page,params));
        return new PageUtils(page);
    }
}
